package com.common.util;

import java.io.IOException;

import com.alibaba.fastjson.JSONObject;
import com.modules.websocket.WebSocket;


public class SendThread extends Thread{
	String eno;
	String clientId;
	String scanTime;
	public SendThread(String eno,String clientId,String scanTime) {
		this.eno=eno;
		this.clientId=clientId;
		this.scanTime=scanTime;
	}
	@Override
	public void run() {
		try {
			JSONObject jo = new JSONObject();
			jo.put("message", eno);
			jo.put("type", "data");
			jo.put("To", "All");
			WebSocket.onMessage(jo.toString());
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
}
